package cn.gs.service;



import cn.gs.dao.UserDaoImpl;
import cn.gs.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl {

    // 持有 DAO 层引用（通过依赖注入）
    @Autowired
    private UserDaoImpl userDao;

    public UserServiceImpl(){

    }

    public List<User> findUserList(){
        return this.userDao.findUserList();
    }
}
